package com.strategy.improve.self;

public class Client {

    public static void main(String[] args) {
        NurseryEducation nurseryEducation = new NurseryEducation();
        PrimaryEducation primaryEducation = new PrimaryEducation();
        JuniorEducation juniorEducation = new JuniorEducation();
        HighEducation highEducation = new HighEducation();
        HighSchool highSchool = new HighSchool(highEducation);
        highSchool.display();
        highSchool.teaching();
        highSchool.setBehavior(juniorEducation);
        highSchool.teaching();
        highSchool.setBehavior(primaryEducation);
        highSchool.teaching();
        highSchool.setBehavior(nurseryEducation);
        highSchool.teaching();
    }
}
